package com.yuexun.beilunpatient.ui.question.api;

import com.yuexun.beilunpatient.base.BaseEntity;
import com.yuexun.beilunpatient.ui.question.bean.PatientQuestionBean;
import com.yuexun.beilunpatient.ui.question.bean.QuestionTypeBean;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;

/**
 * Created by chenss on 2018/8/23.
 */
public interface QuestionApi {

    /**
     * 提问listPage
     * @param praise
     * @return
     */
    @FormUrlEncoded
    @POST("inquirePatientQuestionListPage.json")
    Observable<BaseEntity<PatientQuestionBean>> inquirePatientQuestionListPage(@FieldMap Map<String, String> praise);

    /**
     * 查询提问类型List无分页
     * @param praise
     * @return
     */
    @FormUrlEncoded
    @POST("inquirePatientQuestionTypeList.json")
    Observable<BaseEntity<QuestionTypeBean>> inquirePatientQuestionTypeList(@FieldMap Map<String, String> praise);

    /**
     * 患者发起提问
     * @param praise
     * @return
     */
    @FormUrlEncoded
    @POST("createPatientQuestion.json")
    Observable<BaseEntity> createPatientQuestion(@FieldMap Map<String, String> praise);
}
